package com.wwc.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * 自定义业务异常
 */
@Getter
@Setter
@AllArgsConstructor
public class BusinessException extends RuntimeException{
	/**
	 * 异常信息枚举类
	 */
	private BusinessExceptionEnum e;

	/**
	 * 不写入堆栈信息，提高性能
	 */
	@Override
	public Throwable fillInStackTrace(){
		return this;
	}
}
